﻿using Neural;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections;

namespace NNTest
{
    
    
    /// <summary>
    ///This is a test class for PocketTest and is intended
    ///to contain all PocketTest Unit Tests
    ///</summary>
    [TestClass()]
    public class PocketTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for SaveNetwork
        ///</summary>
        [TestMethod()]
        public void SaveNetworkTest()
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            Pocket target = new Pocket(name); // TODO: Initialize to an appropriate value
            string error = string.Empty; // TODO: Initialize to an appropriate value
            Network network = null; // TODO: Initialize to an appropriate value
            Trainer trainer = null; // TODO: Initialize to an appropriate value
            target.SaveNetwork(error, network, trainer);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetLastUpdateError
        ///</summary>
        [TestMethod()]
        public void GetLastUpdateErrorTest()
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            Pocket target = new Pocket(name); // TODO: Initialize to an appropriate value
            string error = string.Empty; // TODO: Initialize to an appropriate value
            double expected = 0F; // TODO: Initialize to an appropriate value
            double actual;
            actual = target.GetLastUpdateError(error);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetLastUpdateEpoch
        ///</summary>
        [TestMethod()]
        public void GetLastUpdateEpochTest()
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            Pocket target = new Pocket(name); // TODO: Initialize to an appropriate value
            string error = string.Empty; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetLastUpdateEpoch(error);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetErrors
        ///</summary>
        [TestMethod()]
        public void GetErrorsTest()
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            Pocket target = new Pocket(name); // TODO: Initialize to an appropriate value
            ArrayList expected = null; // TODO: Initialize to an appropriate value
            ArrayList actual;
            actual = target.GetErrors();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetContents
        ///</summary>
        [TestMethod()]
        public void GetContentsTest()
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            Pocket target = new Pocket(name); // TODO: Initialize to an appropriate value
            string error = string.Empty; // TODO: Initialize to an appropriate value
            Network expected = null; // TODO: Initialize to an appropriate value
            Network actual;
            actual = target.GetContents(error);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CloseError
        ///</summary>
        [TestMethod()]
        public void CloseErrorTest()
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            Pocket target = new Pocket(name); // TODO: Initialize to an appropriate value
            string error = string.Empty; // TODO: Initialize to an appropriate value
            target.CloseError(error);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddError
        ///</summary>
        [TestMethod()]
        public void AddErrorTest()
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            Pocket target = new Pocket(name); // TODO: Initialize to an appropriate value
            string error = string.Empty; // TODO: Initialize to an appropriate value
            target.AddError(error);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for Pocket Constructor
        ///</summary>
        [TestMethod()]
        public void PocketConstructorTest()
        {
            string name = string.Empty; // TODO: Initialize to an appropriate value
            Pocket target = new Pocket(name);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }
    }
}
